package com.gitee.jjnnzb.jimmyrpc.demo.provider.service;

import com.gitee.jjnnzb.jimmyrpc.core.annotation.RpcProvider;
import com.gitee.jjnnzb.jimmyrpcapi.entity.DemoUser;
import com.gitee.jjnnzb.jimmyrpcapi.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @author Jjn
 * @since 2024-03-17 22:09
 */
@Service
@RpcProvider
public class UserServiceImpl implements UserService {
    @Override
    public DemoUser findById(Integer id) {
        return new DemoUser().setUserId("No." + System.currentTimeMillis()).setUserName("Jimmy").setId(id);
    }
}
